/**
 * Created by wangshaohua on 2018/1/14.
 */
moduleResource.factory("EmsMgtOrganizationClientResource", function (CambioResource, $$CambioConfig) {

    const resource = $$CambioConfig.SZ_MANAGEMENT_SYSTEM_RESOURCE_URL + "/emsMgt/organizationClient";
    return CambioResource(resource, {}, {
        findDownById: {
            url: resource + "/findDownById/:organizationClientId",
            method: 'GET'
        },
        findByKey: {
            url: resource + "/findByKey",
            method: 'POST'
        },
        findById: {
            url: resource + "/findById/:id",
            method: 'GET'
        },
        update: {
            url: resource + "/update",
            method: 'PUT'
        },
        changeParentOrganizationClient: {
            url: resource + "/changeParentOrganizationClient",
            method: 'PUT'
        },
        query: {
            url: resource + "/query" + $$CambioConfig.QUERY_URI,
            method: 'POST'
        }
    });
});